/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */

#ifndef __QS_HttpQuery_H__
#define __QS_HttpQuery_H__

#include "Prerequisites.h"

#include <QtNetwork/QNetworkRequest>
#include <QtNetwork/QNetworkAccessManager>
#include "StockInfo.h"

namespace QSThink
{
	

	class HttpQuery: public QObject
	{
		Q_OBJECT
	public:
		HttpQuery();

		
		void query(int day,int symbol);

	public slots:
		
		bool replyFinished(QNetworkReply* reply );
		bool onReadyRead();
	protected:
		StockInfo stockInfo;
		QNetworkAccessManager _netAccessMgr;

		bool _received;//data received


	};

}

#endif
